<%@ page language="java" pageEncoding="UTF-8"%>
<div ng-controller="UploadConfigEditController">
	<form callback="save" validate>
		<div class="form-group">
			<label>
				名称
			</label><br/>
			<input class="form-control" type="text" name="name" ng-model="config.name" rule="required;" />
		</div>
		<div class="form-group">
			<label>
				路径
			</label><br/>
			<input class="form-control" type="text" name="path" ng-model="config.path" rule="required;" />
		</div>
		<div class="form-group">
			<label>
				类型 <i class="glyphicon glyphicon-exclamation-sign" message="'空代表允许所有类型'" tooltip></i>
			</label><br/>
			<input class="form-control" type="text" name="type" ng-model="config.type" rule="" />
		</div>
		<div class="form-group">
			<label>
				体积
			</label><br/>
			<div class="input-group">
				<input class="form-control" type="text" name="size" ng-model="config.size" rule="required;integer[+];" />
				<span class="input-group-addon">MB</span>
			</div>
		</div>
		<div>
			<button type="submit" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-ok"/> 保存</button>
			<button type="button" class="btn btn-danger btn-sm" ng-click="cancel()"><i class="glyphicon glyphicon-remove"/> 取消</button>
		</div>
	</form>
</div>